package com.kania.simpleemail.core;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MailAutentication extends Authenticator {

	private String sID;
	private String sPassword;
	
	public MailAutentication(String _id, String _password) {
		sID = _id;
		sPassword = _password;
	}

	@Override
	protected PasswordAuthentication getPasswordAuthentication() {
		String user = sID;
		String pw = sPassword;
		return new PasswordAuthentication(user, pw);
	}

}